package com.zzit.vjv.biz.impl.documentReview_impl.developer;

import com.zzit.vjv.biz.documentReview_biz.developer.DevLoginBiz;
import com.zzit.vjv.dao.documentReview_dao.developer.DevLoginDao;
import com.zzit.vjv.entity.documentReview_entity.DevUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("devLoginBiz")
public class DevLoginImpl implements DevLoginBiz {

    @Resource(name = "devLoginDao")
    private DevLoginDao devLoginDao;

    /**
     * 根据用户编码和用户密码查询个人信息(用于前台登录)
     * @param devUser
     * @return
     */
    @Override
    public DevUser findDevUserByDevCodeAndDevPassword(DevUser devUser) {


        return devUser!=null?devLoginDao.findDevUserByDevCodeAndDevPassword(devUser):new DevUser();
    }
}
